<div id="wrap_search_feature">
<div id="activities_area">
	<?php
		$activities = $this->activity_model->get_all_published_activity();
		//echo "<pre>";print_r($activities);echo "</pre>";
		foreach($activities as $act){
			echo '<div class="content">';
				echo '<h2><a target="_blank" href="'.$this->config->item('activity_url','layout').$act['activity_id'].'">'.$act['activity_title'].'</h2>';
				if(isset($act['upload_image']) && !empty($act['upload_image'])){
					$temp_upload_image = json_decode($act['upload_image']);
					echo '<img src="'.$this->config->item('image_uploader_original','layout').$act['user_id'].'/'.$temp_upload_image[0].'"/>';	
				}
				else{
					echo '<img src="'.$this->config->item('empty_thumb_url','layout').'" />';
				}
			echo '</div>';
		}
	?>
</div>
</div>